import Vue from 'vue';
import Router from 'vue-router';
import Login from '@/components/login';
import Ghome from '../components/Generalhospital/homepage';
import Genorderde from '../components/Generalhospital/Orderdetails';
import Genbranchdeta from '../components/Generalhospital/Branchdetails';
import Genbrmore from '../components/Generalhospital/more';
import Gbranch from '../components/Generalhospital/Branch';
import Genbranchdetail from '../components/Generalhospital/branchdetail';
import Genecurriculum from '../components/Generalhospital/curriculum';
import Geneasier from '../components/Generalhospital/easier';
import Bhome from '../components/Branch/homepage';
import More from '../components/Branch/more';
import Branchdetail from '../components/Branch/branchdetail';
import Details from '../components/Branch/details';
import Me from "../components/Branch/me";
import Curriculum from "../components/Branch/curriculum";
import Easier from "../components/Branch/easier";
import Addwithdraw from "../components/Branch/addwithdraw";
import Withdraw from "../components/Branch/withdraw";
import Orderdetails from "../components/Branch/orderdetails";
import UsePor from "../components/loginUS/Portalpage";
import Sahomepage from "../components/Salesman/homepage";
import Samore from "../components/Salesman/more";
import Catalog from "../components/Salesman/catalog";
import Same from "../components/Salesman/me";
import SaDetails from "../components/Salesman/details";
import Detailstwo from "../components/Salesman/detailstwo";
import Sawithdraw from "../components/Salesman/withdraw";
import Saaddwithdraw from "../components/Salesman/addwithdraw";
import Clubcard from "../components/Branch/clubcard";
import Member from "../components/Branch/member";
import Salmem from "../components/Salesman/member";
import Genclubcard from "../components/Generalhospital/clubcard";
import Salclubcard from "../components/Salesman/clubcard";
import Sacatalog from "../components/Branch/catalog";
import ShuiLogin from "../components/applicationform/login";
import Apphomepage from "../components/applicationform/homepage";
import Four from "../components/applicationform/four";
import Home from "../components/applicationform/home";
import Bigcolumn from "../components/Salesman/bigcolumn";
import Brbigcolumn from "../components/Branch/bigcolumn";
import Intro from "../components/newPage/intro";


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'UsePor',
            component: UsePor
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        //分院大专栏
        {
            path: '/Branch/bigcolumn',
            name: 'Brbigcolumn',
            component: Brbigcolumn
        },
        {
            path: '/Generalhospital/homepage',
            name: 'Ghome',
            component: Ghome,
            children: []
        },
        {
            path: '/',
            name: 'UsePor',
            component: UsePor
        },
        {
            path: '/Generalhospital/Orderdetails',
            name: 'Genorderde',
            component: Genorderde
        },
        {
            path: '/Generalhospital/Branchdetails',
            name: 'Genbranchdeta',
            component: Genbranchdeta
        },
        {
            path: '/Generalhospital/more',
            name: 'Genbrmore',
            component: Genbrmore
        },
        {
            path: '/Generalhospital/Branch',
            name: 'Gbranch',
            component: Gbranch
        },
        {
            path: "/Generalhospital/branchdetail",
            name: "Genbranchdetail",
            component: Genbranchdetail
        },
        {
            path: "/Generalhospital/curriculum",
            name: "Genecurriculum",
            component: Genecurriculum
        },
        {
            path: "/Generalhospital/easier",
            name: "Geneasier",
            component: Geneasier
        },
        {
            path: "/Branch/homepage",
            name: "Bhome",
            component: Bhome
        },
        {
            path: "/Branch/more",
            name: "More",
            component: More
        },
        {
            path: "/Branch/branchdetail",
            name: "Branchdetail",
            component: Branchdetail
        },
        {
            path: "/Branch/details",
            name: "Details",
            component: Details
        },
        {
            path: "/Branch/me",
            name: "Me",
            component: Me
        },
        {
            path: "/Branch/curriculum",
            name: "Curriculum",
            component: Curriculum
        },
        {
            path: "/Branch/easier",
            name: "Easier",
            component: Easier
        },
        {
            path: "/Branch/addwithdraw",
            name: "Addwithdraw",
            component: Addwithdraw
        },
        {
            path: "/Branch/withdraw",
            name: "Withdraw",
            component: Withdraw
        },
        {
            path: "/Branch/clubcard",
            name: "Clubcard",
            component: Clubcard
        },
        {
            path: "/Branch/member",
            name: "Member",
            component: Member
        },
        {
            path: "/newPage/intro",
            name: "Intro",
            component: Intro
        }, {
            path: "/Branch/withdraw",
            name: "Withdraw",
            component: Withdraw
        },
        {
            path: "/Branch/orderdetails",
            name: "Orderdetails",
            component: Orderdetails
        },
        {
            path: "/Salesman/homepage",
            name: "Sahomepage",
            component: Sahomepage
        },
        {
            path: "/Salesman/more",
            name: "Samore",
            component: Samore
        },
        {
            path: "/Salesman/catalog",
            name: "Catalog",
            component: Catalog
        },
        {
            path: "/Salesman/me",
            name: "Same",
            component: Same
        },
        {
            path: "/Salesman/details",
            name: "SaDetails",
            component: SaDetails
        },
        {
            path: "/Salesman/detailstwo",
            name: "Detailstwo",
            component: Detailstwo
        },
        {
            path: "/Salesman/withdraw",
            name: "Sawithdraw",
            component: Sawithdraw
        },
        {
            path: "/Salesman/addwithdraw",
            name: "Saaddwithdraw",
            component: Saaddwithdraw
        },
        {
            path: "/Generalhospital/clubcard",
            name: "Genclubcard",
            component: Genclubcard
        },
        {
            path: "/Salesman/clubcard",
            name: "Salclubcard",
            component: Salclubcard
        },
        {
            path: "/Salesman/member",
            name: "Salmem",
            component: Salmem
        },
        {
            path: "/Branch/catalog",
            name: "Sacatalog",
            component: Sacatalog
        },
        {
            path: "/applicationform/login",
            name: "ShuiLogin",
            component: ShuiLogin
        },
        {
            path: "/applicationform/homepage",
            name: "Apphomepage",
            component: Apphomepage
        },
        {
            path: "/applicationform/four",
            name: "Four",
            component: Four
        },
        {
            path: "/applicationform/home",
            name: "Home",
            component: Home
        },
        {
            path: "/Salesman/bigcolumn",
            name: "Bigcolumn",
            component: Bigcolumn
        }
    ]
})